﻿using A.M.ETO;
using A.M.Storage.I_Application;
using J.M.Inventory.Domain.DTO;
using J.M.Inventory.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace J.M.Inventory.Application.IInventoryServices
{
    public interface IEnterwarehouesServices:IBaseServices<enterwarehoues,string>
    {
        /// <summary>
        /// 销售出库管理的显示
        /// </summary>
        /// <param name="code"></param>
        /// <param name="pageIndex"></param>
        /// <param name="pageSize"></param>
        /// <returns></returns>
        PageETO<ListenterwarehouesDTO> GetEnterShow(string? code, int pageIndex, int pageSize);
        /// <summary>
        /// 销售订单的添加
        /// </summary>
        /// <param name="salesAddDTO"></param>
        /// <returns></returns>
        Task<ApiReturn<string>> GetSEnterAddInfo(enterwarehouesAddDTO  enterwarehouesAddDTO);
        /// <summary>
        /// 修改销售出库信息
        /// </summary>
        /// <param name="salesAddDTO"></param>
        /// <returns></returns>
        Task<ApiReturn<string>> PostEnterUpdateInfo(enterwarehouesAddDTO  enterwarehouesAddDTO);
        /// <summary>
        /// 反填销售出库信息
        /// </summary>
        /// <param name="salesid"></param>
        /// <returns></returns>
        Task<enterwarehoues> FindEnterInfo(string? enterid);
        /// <summary>
        /// 删除销售表
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        int DeleteEnter(string? enterid);
        /// <summary>
        /// 仓库表
        /// </summary>
        /// <returns></returns>
        Task<ApiReturn<warehouse>> GetShowwarehouse();
    }
}
